Create plugin for clearing of combat, sparring, and hunting reports with configurable filtering and overlay UI#5704
Create plugin for clearing of combat, sparring, and hunting reports with configurable filtering and overlay UI#5704pajawojciech wants to merge 3 commits intoDFHack:developfrom
Conversation
…ith configurable filtering and overlay UI.
|
The frequency should be a prime number (e.g., 97) for You need something like this during report deletion: (Popups don't need to be handled because they're deleted upon viewing, even if someone was crazy enough to enable them for combat messages.) Myk has a similar unfinished plugin. He ran into some kind of issue, but I don't remember specifics. Maybe it was the performance impact of You could probably delete the unit report logs as you're iterating them (by doing so in reverse order). I think DF itself leaves these stale entries lying around, which would be good to clean up so we can iterate less. |
Fixed
world->status.announcements does not contain sparring, combat and hunting reports
I set frequency to 1 (every tick) and still can't see any performance impact. Performance check says that one run takes less than 2 ms.
I accomplish this using log.clear(); |
Summary
Adds a new plugin to automatically clear combat/sparring/hunting reports from buffer. Features configurable filtering by type, overlay UI settings, and control panel integration.
This does NOT hide the left-side notifications on screen:

Features
Usage
Tests done
Three tabs are empty
Now you can finally keep your reports clean enough to actually spot when Urist McSad is depressed or when a tantrum spiral starts
Related issues
#3694
#3397
Related PR in scripts repo (gui and autostart)
DFHack/scripts#1536